/** 
 * @author Riccardo Manfrin [namesurname at gmail dot com]
 * 
 * @brief  KILLNET APP FILE
 * 
 */

typedef enum{
  WIFIDISABLED,   /* Disabled wifi  */
  SFSD,           /* Server forced shutdown */
  WIFIENABLED,    /* Wifi enabled [default starting state]*/
}wifi_state;

/**
 * Function: wifi_setEn
 * Input: integer value specifying if we have
 * a wireless interface:
 * value =WIFIDISABLED  => WIFI NOT PRESENT @ CLIENT || SERVER
 * value =SFSD          => SERVER FORCED SHUTDOWN
 * value =WIFIENABLED   => WIFI ENABLED @ CLIENT
 * Output: void
 * Result: Semaphore for wifi 
 * related operations.
 */
void wifi_setEn(wifi_state val);

/**
 * Function wifi_getEn
 * Input: void
 * Output: Semaphore value for wifi
 * on our data receiving interface.
 */
wifi_state wifi_getEn(void);

/**
 * Function : wifi_setCh
 * Input : integer value specifying the channel 
 * from 1 to 13
 * Output : result of the operation
 */
int wifi_setCh(int i);

/**
 * Function : wifi_getCh
 * Input : integer value specifying the channel
 * from 1 to 13
 * Output : result of the operation
 */
int wifi_getCh(void);

/**
 * Function : wifi_setRate
 * Input : float value specifying the rate in Mbps
 * (e.g. 1, 2, 5.5, 11, ... )
 * Output : result of the operation (-1 for errors,
 * 0 if it went smooth)
 */
int wifi_setRate(float i);

